<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body></body>
</html>
<script>
  var a = [1, 2, 3, 4, 5, 6, 7, 8, 9];
  var b = [3, 5];
  var f = [];

  for (var i = 0; i < a.length; i++) {
    var c = Number(a[i]);
    // console.log(c);
  }
  for (var y = 0; y < b.length; y++) {
    var d = Number(b[y] + 1);
    // console.log(d);
  }
  a.forEach(item=>{
      console.log(item[i]);
    //   b.forEach(ite={
    //     if(item[i]==ite[i]){

    //     }
    //   })
      
  })

</script>
